/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Items;

import java.io.Serializable;

/**
 *
 * @author insane
 */
public class Item implements Serializable{
    
    //координаты вещи
    private int x;
    private int y;
    private double drop;
    private char see;
    private String name;
    private String action;
    private int[] level = null;
    private int count = 0;

    public Item(char see, String name, String action, double drop) {
        this.see = see;
        this.name = name;
        this.action = action;
        this.drop = drop;
    }

    public Item(char see, String name, String action, double drop, int count) {
        this.see = see;
        this.name = name;
        this.action = action;
        this.drop = drop;
        this.count = count;
    }

    public void addPosition(int x, int y) {
        this.x = x;
        this.y = y;
    }

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the see
     */
    public char getSee() {
        return see;
    }

    /**
     * @param see the see to set
     */
    public void setSee(char see) {
        this.see = see;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the action
     */
    public String getAction() {
        return action;
    }

    /**
     * @param action the action to set
     */
    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the drop
     */
    public double getDrop() {
        return drop;
    }

    /**
     * @param drop the drop to set
     */
    public void setDrop(double drop) {
        this.drop = drop;
    }

    /**
     * @return the level
     */
    public int[] getLevel() {
        return level;
    }

    /**
     * @param level the level to set
     */
    public void setLevel(int[] level) {
        this.level = level;
    }

    /**
     * @return the count
     */
    public int getCount() {
        return count;
    }

    /**
     * @param count the count to set
     */
    public void setCount(int count) {
        this.count = count;
    }
}
